<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>优秀成员 - 流光小队</title>
    <link rel="stylesheet" href="../../css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .excellent-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .excellent-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .excellent-header h1 {
            font-size: 2.5em;
            color: #2d3748;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .excellent-header p {
            font-size: 1.2em;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
        }

        .excellent-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 10px;
        }

        .stat-label {
            color: #718096;
            font-size: 1.1em;
        }

        .excellent-filters {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            background: #f7fafc;
            color: #718096;
            font-size: 1em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .filter-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        .excellent-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .member-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .member-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .member-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
        }

        .member-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5em;
            margin: 0 auto 15px;
            border: 4px solid rgba(255, 255, 255, 0.3);
        }

        .member-name {
            font-size: 1.5em;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .member-title {
            font-size: 1em;
            opacity: 0.9;
            margin-bottom: 10px;
        }

        .member-level {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8em;
            font-weight: 600;
            color: white;
        }

        .level-gold {
            background: #d69e2e;
        }

        .level-silver {
            background: #a0aec0;
        }

        .level-bronze {
            background: #c05621;
        }

        .member-content {
            padding: 25px;
        }

        .member-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-item {
            text-align: center;
            padding: 15px;
            background: #f7fafc;
            border-radius: 8px;
        }

        .stat-value {
            font-size: 1.5em;
            font-weight: 600;
            color: #667eea;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.8em;
            color: #718096;
        }

        .member-achievements {
            margin-bottom: 20px;
        }

        .achievements-title {
            font-size: 1.1em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .achievement-list {
            list-style: none;
            padding: 0;
        }

        .achievement-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            font-size: 0.9em;
            color: #4a5568;
        }

        .achievement-icon {
            color: #d69e2e;
            font-size: 1.1em;
        }

        .member-skills {
            margin-bottom: 20px;
        }

        .skills-title {
            font-size: 1.1em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .skills-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .skill-tag {
            background: #e6fffa;
            color: #234e52;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.85em;
            font-weight: 500;
        }

        .member-actions {
            display: flex;
            gap: 10px;
        }

        .action-btn {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            color: #4a5568;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            text-decoration: none;
        }

        .action-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary:hover {
            background: #5a67d8;
        }

        .honor-wall {
            background: #f7fafc;
            border-radius: 16px;
            padding: 40px;
            margin-bottom: 50px;
        }

        .honor-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .honor-header h2 {
            font-size: 2em;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .honor-header p {
            color: #718096;
            font-size: 1.1em;
        }

        .honor-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
        }

        .honor-item {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .honor-item:hover {
            transform: translateY(-5px);
        }

        .honor-icon {
            font-size: 3em;
            color: #d69e2e;
            margin-bottom: 15px;
        }

        .honor-title {
            font-size: 1.2em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .honor-description {
            color: #718096;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .honor-member {
            color: #667eea;
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .excellent-filters {
                gap: 10px;
            }

            .filter-btn {
                padding: 10px 20px;
                font-size: 0.9em;
            }

            .excellent-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .member-stats {
                grid-template-columns: 1fr;
            }

            .honor-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar" id="sidebar">
        <div class="sidebar-header">
            <h3>流光小队</h3>
            <button class="sidebar-toggle" onclick="toggleSidebar()">
                <i class="fas fa-times"></i>
            </button>
        </div>
        <nav class="sidebar-nav">
            <ul>
                <li>
                    <a href="../../index.html">
                        <i class="fas fa-home"></i>
                        首页
                    </a>
                </li>
                <li>
                    <a href="../about/index.html">
                        <i class="fas fa-info-circle"></i>
                        关于我们
                    </a>
                </li>
                
                <!-- 成员相关 -->
                <li>
                    <a href="../members/index.html">
                        <i class="fas fa-users"></i>
                        成员介绍
                    </a>
                </li>
                <li class="active">
                    <a href="index.html">
                        <i class="fas fa-star"></i>
                        优秀成员
                    </a>
                </li>
                
                <!-- 活动相关 -->
                <li>
                    <a href="../activities/upcoming.html">
                        <i class="fas fa-calendar-alt"></i>
                        活动预告
                    </a>
                </li>
                <li>
                    <a href="../past/index.html">
                        <i class="fas fa-history"></i>
                        往期活动
                    </a>
                </li>
                <li>
                    <a href="../calendar/index.html">
                        <i class="fas fa-calendar"></i>
                        活动日历
                    </a>
                </li>
                
                <!-- 成果与资源 -->
                <li>
                    <a href="../achievements/index.html">
                        <i class="fas fa-trophy"></i>
                        小组成果
                    </a>
                </li>
                <li>
                    <a href="../resources/index.html">
                        <i class="fas fa-book"></i>
                        学习资料
                    </a>
                </li>
                <li>
                    <a href="../resources/shares.html">
                        <i class="fas fa-share-alt"></i>
                        成员分享
                    </a>
                </li>
                
                <!-- 互动与讨论 -->
                <li>
                    <a href="../interaction/index.html">
                        <i class="fas fa-comments"></i>
                        互动交流
                    </a>
                </li>
                
                <!-- 加入与联系 -->
                <li>
                    <a href="../join/index.html">
                        <i class="fas fa-user-plus"></i>
                        加入我们
                    </a>
                </li>
                <li>
                    <a href="../contact/index.html">
                        <i class="fas fa-address-book"></i>
                        联系方式
                    </a>
                </li>
                
                <!-- 其他扩展 -->
                <li>
                    <a href="../partners/index.html">
                        <i class="fas fa-handshake"></i>
                        合作伙伴
                    </a>
                </li>
                <li>
                    <a href="../faq/index.html">
                        <i class="fas fa-question-circle"></i>
                        常见问题
                    </a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 顶部导航栏 -->
        <div class="topbar">
            <div class="topbar-left">
                <button class="menu-toggle" onclick="toggleSidebar()">
                    <i class="fas fa-bars"></i>
                </button>
                <h1>优秀成员</h1>
            </div>
        </div>

        <!-- 内容区域 -->
        <div class="content">
            <div class="excellent-section">
                <!-- 页面标题 -->
                <div class="excellent-header">
                    <h1>优秀成员</h1>
                    <p>展示团队中的优秀成员，他们的成就和贡献</p>
                </div>

                <!-- 优秀成员统计 -->
                <div class="excellent-stats">
                    <div class="stat-card">
                        <div class="stat-number">15</div>
                        <div class="stat-label">优秀成员</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">8</div>
                        <div class="stat-label">金牌成员</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">5</div>
                        <div class="stat-label">银牌成员</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">2</div>
                        <div class="stat-label">铜牌成员</div>
                    </div>
                </div>

                <!-- 筛选按钮 -->
                <div class="excellent-filters">
                    <button class="filter-btn active" onclick="filterMembers('all')" data-filter="all">
                        <i class="fas fa-th"></i> 全部成员
                    </button>
                    <button class="filter-btn" onclick="filterMembers('gold')" data-filter="gold">
                        <i class="fas fa-medal"></i> 金牌成员
                    </button>
                    <button class="filter-btn" onclick="filterMembers('silver')" data-filter="silver">
                        <i class="fas fa-medal"></i> 银牌成员
                    </button>
                    <button class="filter-btn" onclick="filterMembers('bronze')" data-filter="bronze">
                        <i class="fas fa-medal"></i> 铜牌成员
                    </button>
                </div>

                <!-- 优秀成员展示 -->
                <div class="excellent-grid" id="excellentGrid">
                    <!-- 成员卡片将通过JavaScript动态生成 -->
                </div>

                <!-- 荣誉墙 -->
                <div class="honor-wall">
                    <div class="honor-header">
                        <h2><i class="fas fa-trophy"></i> 荣誉墙</h2>
                        <p>团队成员获得的荣誉和奖项</p>
                    </div>
                    <div class="honor-grid">
                        <div class="honor-item">
                            <div class="honor-icon">🏆</div>
                            <div class="honor-title">年度最佳成员</div>
                            <div class="honor-description">在团队建设中表现突出，为团队发展做出重要贡献</div>
                            <div class="honor-member">— 张小明</div>
                        </div>
                        <div class="honor-item">
                            <div class="honor-icon">🥇</div>
                            <div class="honor-title">技术创新奖</div>
                            <div class="honor-description">在技术创新方面取得重大突破，推动团队技术进步</div>
                            <div class="honor-member">— 李小红</div>
                        </div>
                        <div class="honor-item">
                            <div class="honor-icon">🎖️</div>
                            <div class="honor-title">团队协作奖</div>
                            <div class="honor-description">在团队协作中表现优秀，促进团队和谐发展</div>
                            <div class="honor-member">— 王小华</div>
                        </div>
                        <div class="honor-item">
                            <div class="honor-icon">🏅</div>
                            <div class="honor-title">新人进步奖</div>
                            <div class="honor-description">新成员中进步最快，学习能力突出</div>
                            <div class="honor-member">— 赵小强</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 优秀成员数据
        const excellentMembers = [
            {
                id: 1,
                name: "张小明",
                title: "技术总监",
                level: "gold",
                avatar: "张",
                stats: { projects: 25, awards: 8, contributions: 150 },
                achievements: [
                    "全国大学生创新创业大赛一等奖",
                    "ACM程序设计竞赛金奖",
                    "优秀毕业生",
                    "技术创新奖"
                ],
                skills: ["React", "Node.js", "Python", "机器学习", "项目管理"]
            },
            {
                id: 2,
                name: "李小红",
                title: "算法专家",
                level: "gold",
                avatar: "李",
                stats: { projects: 20, awards: 6, contributions: 120 },
                achievements: [
                    "数学建模竞赛一等奖",
                    "机器学习竞赛银奖",
                    "学术论文发表",
                    "算法优化奖"
                ],
                skills: ["Python", "机器学习", "深度学习", "算法设计", "数据分析"]
            },
            {
                id: 3,
                name: "王小华",
                title: "前端工程师",
                level: "silver",
                avatar: "王",
                stats: { projects: 18, awards: 4, contributions: 100 },
                achievements: [
                    "前端开发竞赛二等奖",
                    "用户体验设计奖",
                    "技术分享达人",
                    "团队协作奖"
                ],
                skills: ["Vue.js", "React", "TypeScript", "UI/UX设计", "前端工程化"]
            },
            {
                id: 4,
                name: "赵小强",
                title: "后端工程师",
                level: "silver",
                avatar: "赵",
                stats: { projects: 16, awards: 3, contributions: 90 },
                achievements: [
                    "后端开发竞赛三等奖",
                    "数据库设计奖",
                    "系统架构奖",
                    "新人进步奖"
                ],
                skills: ["Java", "Spring Boot", "MySQL", "Redis", "微服务"]
            },
            {
                id: 5,
                name: "陈小美",
                title: "产品经理",
                level: "bronze",
                avatar: "陈",
                stats: { projects: 12, awards: 2, contributions: 70 },
                achievements: [
                    "产品设计竞赛优秀奖",
                    "用户研究奖",
                    "需求分析奖",
                    "团队贡献奖"
                ],
                skills: ["产品设计", "用户研究", "需求分析", "项目管理", "数据分析"]
            },
            {
                id: 6,
                name: "刘小刚",
                title: "测试工程师",
                level: "bronze",
                avatar: "刘",
                stats: { projects: 10, awards: 1, contributions: 60 },
                achievements: [
                    "测试技能竞赛优秀奖",
                    "质量保证奖",
                    "自动化测试奖",
                    "团队协作奖"
                ],
                skills: ["自动化测试", "性能测试", "安全测试", "测试工具", "质量保证"]
            }
        ];

        let currentFilter = 'all';

        function toggleSidebar() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('open');
        }

        function filterMembers(filter) {
            currentFilter = filter;
            
            // 更新筛选按钮状态
            document.querySelectorAll('.filter-btn').forEach(btn => {
                btn.classList.remove('active');
            });
            document.querySelector(`[data-filter="${filter}"]`).classList.add('active');
            
            // 重新渲染成员列表
            renderMembers();
        }

        function renderMembers() {
            const grid = document.getElementById('excellentGrid');
            const filteredMembers = currentFilter === 'all' 
                ? excellentMembers 
                : excellentMembers.filter(member => member.level === currentFilter);
            
            grid.innerHTML = filteredMembers.map(member => `
                <div class="member-card">
                    <div class="member-header">
                        <div class="member-avatar">${member.avatar}</div>
                        <div class="member-name">${member.name}</div>
                        <div class="member-title">${member.title}</div>
                        <div class="member-level level-${member.level}">
                            ${getLevelText(member.level)}
                        </div>
                    </div>
                    <div class="member-content">
                        <div class="member-stats">
                            <div class="stat-item">
                                <div class="stat-value">${member.stats.projects}</div>
                                <div class="stat-label">项目</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">${member.stats.awards}</div>
                                <div class="stat-label">奖项</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">${member.stats.contributions}</div>
                                <div class="stat-label">贡献</div>
                            </div>
                        </div>
                        
                        <div class="member-achievements">
                            <div class="achievements-title">主要成就</div>
                            <ul class="achievement-list">
                                ${member.achievements.map(achievement => `
                                    <li class="achievement-item">
                                        <i class="fas fa-trophy achievement-icon"></i>
                                        <span>${achievement}</span>
                                    </li>
                                `).join('')}
                            </ul>
                        </div>
                        
                        <div class="member-skills">
                            <div class="skills-title">技能专长</div>
                            <div class="skills-tags">
                                ${member.skills.map(skill => `<span class="skill-tag">${skill}</span>`).join('')}
                            </div>
                        </div>
                        
                        <div class="member-actions">
                            <button class="action-btn" onclick="showMemberDetail(${member.id})">
                                <i class="fas fa-eye"></i> 详情
                            </button>
                            <button class="action-btn primary" onclick="contactMember(${member.id})">
                                <i class="fas fa-envelope"></i> 联系
                            </button>
                        </div>
                    </div>
                </div>
            `).join('');
        }

        function getLevelText(level) {
            const levelMap = {
                'gold': '金牌',
                'silver': '银牌',
                'bronze': '铜牌'
            };
            return levelMap[level] || level;
        }

        function showMemberDetail(id) {
            const member = excellentMembers.find(m => m.id === id);
            if (member) {
                const detailText = `
👤 成员详情

姓名：${member.name}
职位：${member.title}
等级：${getLevelText(member.level)}

📊 统计数据：
• 参与项目：${member.stats.projects}个
• 获得奖项：${member.stats.awards}个
• 团队贡献：${member.stats.contributions}次

🏆 主要成就：
${member.achievements.map(achievement => `• ${achievement}`).join('\n')}

💼 技能专长：
${member.skills.join('、')}
                `;
                alert(detailText);
            }
        }

        function contactMember(id) {
            const member = excellentMembers.find(m => m.id === id);
            if (member) {
                alert(`联系${member.name}：\n\n📧 邮箱：${member.name.toLowerCase()}@example.com\n📱 微信：${member.name}的微信\n💬 QQ：${member.name}的QQ`);
            }
        }

        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            renderMembers();
            
            // 设置当前页面的导航项为激活状态
            document.querySelectorAll('.sidebar-nav li').forEach(li => {
                li.classList.remove('active');
            });
            document.querySelector('.sidebar-nav li:nth-child(4)').classList.add('active');
        });
    </script>
</body>
</html> 